package com.chenshu.demo.service;

import com.chenshu.demo.mapper.UserMapper;
import com.chenshu.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2023-12-23
 * Time：20:18
 */
@Service
public class UserService {
    @Autowired()
    private UserMapper userMapper;
    public List<User> getAll() {
        return userMapper.getAll();
    }

    public int add(String username, String password, String gitUrl) {
        return userMapper.add(username, password, gitUrl);
    }
}
